package com.hotel.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hotel.entity.PointsRecord;
import com.hotel.vo.PointsRecordVO;

import java.util.List;
import java.util.Map;

/**
 * 积分记录服务接口
 */
public interface PointsRecordService extends IService<PointsRecord> {
    
    /**
     * 分页查询积分记录
     */
    Page<PointsRecordVO> getPointsRecordPage(int current, int size, Long memberId, String type);
    
    /**
     * 添加积分记录
     */
    boolean addPointsRecord(Long memberId, String type, Integer points, String source, 
                           String orderNo, String description);
    
    /**
     * 获取会员积分记录
     */
    List<PointsRecordVO> getMemberPointsRecords(Long memberId, int limit);
    
    /**
     * 获取积分统计
     */
    Map<String, Object> getPointsStats(Long memberId);
    
    /**
     * 获取积分趋势
     */
    List<Map<String, Object>> getPointsTrend(Long memberId, String type);

    Map<String, Object> getPointsStats();

    List<Map<String, Object>> getPointsTrend(Long days);

    List<Map<String, Object>> getPointsSourceStats();

    List<Map<String, Object>> getPointsUsageStats();

    List<Map<String, Object>> getMemberPointsRanking(int limit);

    List<Map<String, Object>> getPointsTypeStats();

    List<Map<String, Object>> getMonthlyPointsStats(int months);

    Map<String, Object> getPointsActivityStats(int days);

    List<Map<String, Object>> getMemberPointsTrend(Long memberId, int days);
}